<#assign listLength = content.content.fields?size>
<#assign fieldList = content.content.fields>
<#assign tableName = content.content.tableName>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <title>详情页面</title>
    #set(${content.items.entity.packageName}.${content.items.entity.className} ${tableName})
    ${r'${include("/ibp/httl/include/include_css.httl","UTF-8")}'}
    ${r'${include("/ibp/httl/include/include_js.httl","UTF-8")}'}
    <style></style>
</head>
<body>
<cus-template>
    <div class="clearfix">
        <form class="cus-form">
            <div layout-padding id="wrap">
                <table class="table-info">
                    <tbody>
                    <#assign forNum = 0>
                    <#list  0..listLength-1 as i>
                        <#if forNum<=listLength-1>
                        <tr>
                            <th><#if fieldList?? && fieldList?size gt 0>${fieldList[forNum].remark}</#if></th>
                            <td colspan="3">$!{${tableName}.${fieldList[forNum].fieldName}}</td>
                            <#if listLength-1==forNum>
                        </tr>
                                <#break>
                            <#else>
                            <th><#if fieldList[forNum+1].fieldRemark??>${fieldList[forNum+1].fieldRemark}</#if></th>
                            <td colspan="3">$!{${tableName}.${fieldList[forNum+1].fieldName}}</td>
                            </#if>
                        </tr>
                        <#assign forNum = forNum+2 >
                        </#if>
                    </#list>
                    </tbody>
                </table>
            </div>
            <!-- ===============================附件管理相关参数================================= -->
            <#if content.content.primaryField?? && content.content.primaryField?size gt 0>
            <input type="hidden" name="businesskey" id="businesskey" value="$!{${tableName}.${content.content.primaryField[0].fieldName}}"/>
            <#else>
            <input type="hidden" name="businesskey" id="businesskey" value=""/>
            </#if>
            <input type="hidden" name="businesskey_attachtype" id="businesskey_attachtype" value="${tableName}"/>
            ${r'${include("/ibp/httl/attach/include_attach_disp.httl","UTF-8")}'}
            <!-- ====================================end======================================-->
        </form>
    </div>
</cus-template>

<script>

</script>
</body>
</html>
